from google.appengine.ext import db

class Trip(db.Model):
  name = db.StringProperty()
  areas = db.ListProperty(db.Key)
  userId = db.StringProperty()

class Area(db.Model):
  name = db.StringProperty()
  city = db.StringProperty()
  tripKey = db.StringProperty()
  hotels = db.ListProperty(db.Key)
  startDate = db.DateProperty() 
  endDate = db.DateProperty() 
  userId = db.StringProperty()

class Hotel(db.Model):
  name = db.StringProperty()
  price = db.StringProperty()
  comment = db.StringProperty()
  booked = db.BooleanProperty()
  flagged = db.BooleanProperty()
  areaKey = db.StringProperty()
  links = db.ListProperty(db.Key)
  userId = db.StringProperty()

class HotelReservation(db.Model):
  startDate = db.DateProperty() 
  endDate = db.DateProperty() 
  cancellationDate = db.DateProperty() 
  infoLink = db.StringProperty()
  cancellationLink = db.StringProperty()
  emailReminderDate = db.DateProperty() 
  emailReminder = db.BooleanProperty()
  email = db.StringProperty()
  reservationConfigKey = db.StringProperty()
  userId = db.StringProperty()
  hotelKey = db.StringProperty()

class HotelLink(db.Model):
    link = db.StringProperty()
    linkConfigKey = db.StringProperty()
    hotelKey = db.StringProperty()
    userId = db.StringProperty()

class LinkConfig(db.Model):
    name = db.StringProperty()
    customSearchID = db.StringProperty()
    iconPath = db.StringProperty()
    searchText = db.StringProperty()
    homepage = db.StringProperty()
    forwardDateFormat = db.StringProperty()
